import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 求和的重载
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-04-18  13:23
 */
public class Test3 {
    public static int add(int a,int b) {
        return a+b;
    }
    public static double add(float a,float b,float c) {
        return a+b+c;
    }
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        System.out.println(add(a, b));
        System.out.println(add(a, b, c));
        scanner.close();
    }
}
